<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/21 0021
 * Time: 17:06
 */
use yii\helpers\Html;
use yii\helpers\Url;
?>
<div class="col-md-2">
    <div class="list-group">
        <?php
        $items = [
            [
                'title' => '人员',
                'url' => ['/agent/index'],
            ],
//            [
//                'title' => '统计',
//                'url' => ['/total/summary'],
//            ],
//            [
//                'title' => '开通平台',
//                'url' => ['/organization/create'],
//            ],
//            [
//                'title' => '代理管理',
//                'url' => ['/organization/managaagent'],
//            ],
//            [
//                'title' => '代理提现',
//                'url' => ['/organization/managaagentwithdrawal'],
//            ],
//            [
//                'title' => '主题管理',
//                'url' => ['/theme/index'],
//            ],
//            [
//                'title' => '统计',
//                'url' => ['#'],
//            ],
//            [
//                'title' => '功能套餐',
//                'url' => ['#'],
//            ],

        ];

        foreach ($items as $item) {
            echo Html::a($item['title'], $item['url'], [
                'class' => 'list-group-item' . ('/' . $this->context->route === Url::to($item['url']) ? ' active ' : ''),
            ]);
        }

        ?>
    </div>
</div>
